<template>
  <div class="banner">
    <img :src="bannerImg" alt="">
    <div class="content">
      <h3>{{title}}</h3>
      <h3>{{subTitle}}</h3>
    </div>
  </div>
</template>

<script>
export default {
  name: "SupportBanner",
  props:{
    bannerImg:{
      type:String,
      default:""
    },
    title:{
      type:String,
      default:""
    },
    subTitle:{
      type:String,
      default:""
    }
  }
}
</script>

<style scoped lang="scss">
.banner {
  position: relative;
  img {
    width: 100%;
    height: 320px;
    object-fit: cover;
  }
  .content{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align:center;
    h3 {
      color: white;
      font-size: 50px;
      z-index:1;
    }
  }
}
//.banner::after {
//  content: '';
//  width: 100%;
//  height: 100%;
//  position: absolute;
//  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
//  top: 0;
//  left: 0;
//  z-index: 0;
//}
</style>
